package util;

import com.alibaba.fastjson.JSONObject;
import com.rainbowred.common.util.StringUtil;
import com.rainbowred.metaService.pojo.whatsapp.WhatsappTemplateMsg;

/**
 * @Desc:
 * @Date: 2024/3/22 16:12
 * @Author: pengweibiao
 **/
public class StringUtilTest {

    public static void main(String[] args) {
        test1();
    }


    public static void test() {
        WhatsappTemplateMsg whatsappTemplateMsg = new WhatsappTemplateMsg("visitor/common/record.html?url=http%3A%2F%2Ffrapi.echatsoft.com%2Fpaodm%2Fqd%3FcompanyId%3D531879%26visitorId%3DcustomfjPhKWPW8618774833025%26chatInfoType%3D4%26talkId%3D50749%26tm%3D1713346068961%26token%3D9767E37F423478AE0D7E4C81F4F7F4F0"
        ,"zh_CN");
        System.out.println("=====StringUtilTest-test=====\n"+ JSONObject.toJSONString(whatsappTemplateMsg));
    }

    public static void test1() {
        String s = StringUtil.html2TextFacebook("<p>怎么说 <img class=\"chat-editor-image\" name=\"AMG-GTR.png\" title=\"点击查看原图\" src=\"https: //qnfile.echatsoft.com/09d158ac-6b9b-493d-9a4a-a5904a25f175\"></p><p><span class=\"ql-cursor\">\uFEFF</span></p>");
        System.out.println(s);

    }

}
